<?php

namespace app\controller\car;

use app\BaseController;
use app\model\Order;
use think\response\Json;

class Gas extends BaseController
{
    public function lst(): Json
    {
        return $this->handle(function (){
            return $this->app->make(Order::class)->supplierPage();
        });
    }

    public function download(): Json
    {
        return $this->handle(function (){
            return $this->app->make(Order::class)->download(true);
        });
    }
}
